package cn.neusoft.query;

import lombok.Data;

/**
 * 分页条件类
 */
@Data
public class BaseQuery {

    private Integer currentPage = 1;
    private Integer pageSize = 5;

    /**
     * 获取开始查询的下标
     * @return
     */
    public Integer getStartIndex(){
        return (currentPage-1)*pageSize;
    }
}
